add Dockerfile & docker-compose.yml #242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In preparation to archiving the repository, I'm adding a Dockerfile and docker-compose.yml. This should let the software to run even with the very ancient dependencies it has.
The Dockerfile should setup a fully working environment for kippo, including optional dependencies (mysql, xmpp).
All data and configuration should be kept outside the container by using volumes. The
docker-compose.yml
has these volumes pointing to the usual directories in the main kippo directory.This is based on the dockerfile by @aristofanischionis in #241 , but I ended up heavily editing it to use alpine and support docker-compose.
usage with docker
To build:
To use:
usage with docker-compose
With the docker-compose.yml, kippo can be run with a single command:
To start with the optional mariadb service:
Additional notes
This doesn't seem to work too well with
podman
. I think it doesn't support profiles indocker-compose.yml
, or the volumes pointing to a file (kippo.cfg
).